/*
 * Copyright (c) 2010 Google Inc.
 *
 * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except
 * in compliance with the License. You may obtain a copy of the License at
 *
 * http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software distributed under the License
 * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express
 * or implied. See the License for the specific language governing permissions and limitations under
 * the License.
 */
/*
 * Warning! This file is generated. Modify at your own risk.
 */

package com.google.api.services.gan.model;

import com.google.api.client.http.HttpHeaders;
import com.google.api.client.json.GenericJson;
import com.google.api.client.json.JsonString;
import com.google.api.client.util.Key;
import java.util.List;
import com.google.api.client.util.DateTime;

/**
 * Model definition for Gan.Event.
 *
 * An EventResource.
 *
 * This class models an object which will be transmitted to or from the Gan service. To reduce the
 * data transferred during service requests, you may remove members that contain data elements that
 * your application does not need.
 *
 * For a detailed explanation, see: <a href="http://code.google.com/p/google-api-java-
 * client/wiki/Json"> http://code.google.com/p/google-api-java-client/wiki/Json</a>
 *
 * @author Google, Inc.
 */
public final class Event extends GenericJson {

  /**
   * Fee that the advertiser paid to the Google Affiliate Network.
   */
  @Key("networkFee")
  private Object networkFee;

  /** Fee that the advertiser paid to the Google Affiliate Network. */
  public Object getNetworkFee() {
    return networkFee;
  }

  /** Fee that the advertiser paid to the Google Affiliate Network. */
  public Event setNetworkFee(Object networkFee) {
    this.networkFee = networkFee;
    return this;
  }
  /**
   * The name of the advertiser for this event.
   */
  @Key("advertiserName")
  private String advertiserName;

  /** The name of the advertiser for this event. */
  public String getAdvertiserName() {
    return advertiserName;
  }

  /** The name of the advertiser for this event. */
  public Event setAdvertiserName(String advertiserName) {
    this.advertiserName = advertiserName;
    return this;
  }
  /**
   * The kind for one event.
   */
  @Key("kind")
  private String kind;

  /** The kind for one event. */
  public String getKind() {
    return kind;
  }

  /** The kind for one event. */
  public Event setKind(String kind) {
    this.kind = kind;
    return this;
  }
  /**
   * The date-time this event was last modified as a RFC 3339 date-time value.
   */
  @Key("modifyDate")
  private DateTime modifyDate;

  /** The date-time this event was last modified as a RFC 3339 date-time value. */
  public DateTime getModifyDate() {
    return modifyDate;
  }

  /** The date-time this event was last modified as a RFC 3339 date-time value. */
  public Event setModifyDate(DateTime modifyDate) {
    this.modifyDate = modifyDate;
    return this;
  }
  /**
   * Type of the event (action|transaction|charge).
   */
  @Key("type")
  private String type;

  /** Type of the event (action|transaction|charge). */
  public String getType() {
    return type;
  }

  /** Type of the event (action|transaction|charge). */
  public Event setType(String type) {
    this.type = type;
    return this;
  }
  /**
   * The order ID for this event. Only returned for conversion events.
   */
  @Key("orderId")
  private String orderId;

  /** The order ID for this event. Only returned for conversion events. */
  public String getOrderId() {
    return orderId;
  }

  /** The order ID for this event. Only returned for conversion events. */
  public Event setOrderId(String orderId) {
    this.orderId = orderId;
    return this;
  }
  /**
   * The name of the publisher for this event.
   */
  @Key("publisherName")
  private String publisherName;

  /** The name of the publisher for this event. */
  public String getPublisherName() {
    return publisherName;
  }

  /** The name of the publisher for this event. */
  public Event setPublisherName(String publisherName) {
    this.publisherName = publisherName;
    return this;
  }
  /**
   * The ID of the member attached to this event. Only returned for conversion events.
   */
  @Key("memberId")
  private String memberId;

  /** The ID of the member attached to this event. Only returned for conversion events. */
  public String getMemberId() {
    return memberId;
  }

  /** The ID of the member attached to this event. Only returned for conversion events. */
  public Event setMemberId(String memberId) {
    this.memberId = memberId;
    return this;
  }
  /**
   * The ID of advertiser for this event.
   */
  @Key("advertiserId") @JsonString
  private Long advertiserId;

  /** The ID of advertiser for this event. */
  public Long getAdvertiserId() {
    return advertiserId;
  }

  /** The ID of advertiser for this event. */
  public Event setAdvertiserId(Long advertiserId) {
    this.advertiserId = advertiserId;
    return this;
  }
  /**
   * Status of the event (active|canceled). Only returned for charge and conversion events.
   */
  @Key("status")
  private String status;

  /** Status of the event (active|canceled). Only returned for charge and conversion events. */
  public String getStatus() {
    return status;
  }

  /** Status of the event (active|canceled). Only returned for charge and conversion events. */
  public Event setStatus(String status) {
    this.status = status;
    return this;
  }
  /**
   * The charge ID for this event. Only returned for charge events.
   */
  @Key("chargeId")
  private String chargeId;

  /** The charge ID for this event. Only returned for charge events. */
  public String getChargeId() {
    return chargeId;
  }

  /** The charge ID for this event. Only returned for charge events. */
  public Event setChargeId(String chargeId) {
    this.chargeId = chargeId;
    return this;
  }
  /**
   * Products associated with the event.
   */
  @Key("products")
  private java.util.List<EventProducts> products;

  /** Products associated with the event. */
  public java.util.List<EventProducts> getProducts() {
    return products;
  }

  /** Products associated with the event. */
  public Event setProducts(java.util.List<EventProducts> products) {
    this.products = products;
    return this;
  }
  /**
   * Earnings by the publisher.
   */
  @Key("earnings")
  private Object earnings;

  /** Earnings by the publisher. */
  public Object getEarnings() {
    return earnings;
  }

  /** Earnings by the publisher. */
  public Event setEarnings(Object earnings) {
    this.earnings = earnings;
    return this;
  }
  /**
   * Charge type of the event (other|slotting_fee|monthly_minimum|tier_bonus|debit|credit). Only
   * returned for charge events.
   */
  @Key("chargeType")
  private String chargeType;

  /**
 * Charge type of the event (other|slotting_fee|monthly_minimum|tier_bonus|debit|credit). Only
 * returned for charge events.
 */
  public String getChargeType() {
    return chargeType;
  }

  /**
 * Charge type of the event (other|slotting_fee|monthly_minimum|tier_bonus|debit|credit). Only
 * returned for charge events.
 */
  public Event setChargeType(String chargeType) {
    this.chargeType = chargeType;
    return this;
  }
  /**
   * Fee that the advertiser paid to the publisher.
   */
  @Key("publisherFee")
  private Object publisherFee;

  /** Fee that the advertiser paid to the publisher. */
  public Object getPublisherFee() {
    return publisherFee;
  }

  /** Fee that the advertiser paid to the publisher. */
  public Event setPublisherFee(Object publisherFee) {
    this.publisherFee = publisherFee;
    return this;
  }
  /**
   * Amount of money exchanged during the transaction. Only returned for charge and conversion
   * events.
   */
  @Key("commissionableSales")
  private Object commissionableSales;

  /**
 * Amount of money exchanged during the transaction. Only returned for charge and conversion events.
 */
  public Object getCommissionableSales() {
    return commissionableSales;
  }

  /**
 * Amount of money exchanged during the transaction. Only returned for charge and conversion events.
 */
  public Event setCommissionableSales(Object commissionableSales) {
    this.commissionableSales = commissionableSales;
    return this;
  }
  /**
   * The ID of the publisher for this event.
   */
  @Key("publisherId") @JsonString
  private Long publisherId;

  /** The ID of the publisher for this event. */
  public Long getPublisherId() {
    return publisherId;
  }

  /** The ID of the publisher for this event. */
  public Event setPublisherId(Long publisherId) {
    this.publisherId = publisherId;
    return this;
  }
  /**
   * The date-time this event was initiated as a RFC 3339 date-time value.
   */
  @Key("eventDate")
  private DateTime eventDate;

  /** The date-time this event was initiated as a RFC 3339 date-time value. */
  public DateTime getEventDate() {
    return eventDate;
  }

  /** The date-time this event was initiated as a RFC 3339 date-time value. */
  public Event setEventDate(DateTime eventDate) {
    this.eventDate = eventDate;
    return this;
  }


  private HttpHeaders responseHeaders;

  /**
   * Sets the HTTP headers returned with the server response, or <code>null</code>.
   *
   * This member should only be non-null if this object was the top level element of a response. For
   * example, a request that returns a single Event would include the response headers, while a
   * request which returns an array of Event, would have a non-null response header in the enclosing
   * object only.
   */
  public void setResponseHeaders(HttpHeaders responseHeaders) {
    this.responseHeaders = responseHeaders;
  }

  /**
   * Returns the HTTP headers that were returned with the server response, or
   * <code>null</code>.
   */
  public HttpHeaders getResponseHeaders() {
    return responseHeaders;
  }
}
